<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coin_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coin_type" data-rule="required" class="form-control" name="row[coin_type]" type="text" value="{$row.coin_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Logo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" data-rule="required" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coin_price_usd')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coin_price_usd" data-rule="required" class="form-control" name="row[coin_price_usd]" type="text" value="{$row.coin_price_usd|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('单位收益')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-per_unit" data-rule="required" class="form-control" name="row[per_unit]" type="text" value="{$row.per_unit|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Algorithm')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-algorithm" data-rule="required" class="form-control" name="row[algorithm]" type="text" value="{$row.algorithm|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mining_addr_list')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mining_addr_list" data-rule="required" class="form-control" name="row[mining_addr_list]" type="text" value="{$row.mining_addr_list|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mining_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mining_type" data-rule="required" class="form-control" name="row[mining_type]" type="text" value="{$row.mining_type|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Net_hashrate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-net_hashrate" data-rule="required" class="form-control" name="row[net_hashrate]" type="text" value="{$row.net_hashrate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Net_hashrate_unit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-net_hashrate_unit" data-rule="required" class="form-control" name="row[net_hashrate_unit]" type="text" value="{$row.net_hashrate_unit|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pool_hashrate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pool_hashrate" data-rule="required" class="form-control" name="row[pool_hashrate]" type="text" value="{$row.pool_hashrate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Network_diff')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-network_diff" data-rule="required" class="form-control" name="row[network_diff]" type="text" value="{$row.network_diff|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Next_diff')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-next_diff" data-rule="required" class="form-control" name="row[next_diff]" type="text" value="{$row.next_diff|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Minimum_payment')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-minimum_payment" data-rule="required" class="form-control" step="0.0000000001" name="row[minimum_payment]" type="number" value="{$row.minimum_payment|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:$row.create_time?datetime($row.create_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-update_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update_time]" type="text" value="{:$row.update_time?datetime($row.update_time):''}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
